﻿#region Using Statements

using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline;
using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
using Microsoft.Xna.Framework.Content.Pipeline.Processors;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler;
using MilwormsGameData;

#endregion

namespace MilwormsGameContentPipeline
{
    [ContentTypeWriter]
    public class WorldObjectWriter : MilwormsGameWriter<WorldObject>
    {
        protected override void Write(ContentWriter output, WorldObject value)
        {
            output.Write(value.Name);
        }

        public override string GetRuntimeType(TargetPlatform targetPlatform)
        {
            //   return base.GetRuntimeType(targetPlatform);
            return typeof(MilwormsGameData.WorldObject).AssemblyQualifiedName;
        }

        public override string GetRuntimeReader(TargetPlatform targetPlatform)
        {
            //return base.GetRuntimeReader(targetPlatform);
            return typeof(MilwormsGameData.WorldObject.WorldObjectReader).AssemblyQualifiedName;
        }
    }
}
